Using Web APIs with Node.js

Pull data from Web APIs

In this workshop we will see how to call web apis and extract the data


Source Code

The source code for these examples can be found here:

Source Code

Read the README.md for further information about how to use the samples.

Open Weather Map

Sign up for a free API key here:

Open Weather Map Sign-up

Note that there are free and paid subscriptions. Just go for the free one.

Note that there might be a delay between requesting the key and it becoming active.

Guardian

Sign up for a developer key here:

Guardian Developer Map Sign-up


Guardian1

Fill in the form:

Guardian register

New York Times

Sign up for a developer key here:

New York Times Sign-up

Once signed in, select the Apps menu from the account drop-down menu:

Nyt app menu

On the page that appears select the NEW APP button:

Nyt new app

Fill in the details, selecting the APIs that you want, e.g:

Nyt create app

Then click the create button. You should now see the app id and api keys:

Nyt keys

You will need the API key not the App ID for your code.

Twitter

Sign up for a developer account here:

Twitter Developer Account

Once signed up you can go to your dashboard to create your apps:

Twitter Developer Portal Dashboard